//
//  UrlSchemeHandler.h
//  itboye2015002
//  处理自定义的urlScheme
//  Created by hebidu on 15/9/20.
//  Copyright © 2015年 Boye. All rights reserved.
//

#import <Foundation/Foundation.h>


/**
 *   协议
 *
 *  @param url NSURL
 *
 *  @return YES | NO
 */

@protocol IByUrlSchemeHandler <NSObject>

@required

- (void)handle:(NSURL *)url params:(NSDictionary *)params;

@end




@interface ByCoreToolUrlSchemeHandler : NSObject

/**
 *  处理urlscheme
 *
 *  @param url NSURL
 *
 *  @return YES | NO
 */
+ (BOOL)handleOpenURL:(NSURL *)url  options:(NSDictionary *)options;

+ (void)registerScheme:(NSString *) scheme :(id ) obj;

@end
